/************************************************************
 * Project Name         [Thinking_In_Java]
 * File Name            [NovelBook.java]
 * Creation Date        [24-Jul-2014]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 ************************************************************/
package pkg_principles.ocp.example01;

/**
 * 小说类书籍
 * 
 * @author 不落的太阳(Sean Yang)
 * @version 1.0
 * @since JDK 6
 * 
 */
public class NovelBook implements IBook {

	private final String name;
	private final String author;
	private final double price;

	/**
	 * 构造方法
	 * 
	 * @param name
	 * @param author
	 * @param price
	 */
	public NovelBook(String name, double price, String author) {
		super();
		this.name = name;
		this.author = author;
		this.price = price;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public double getPrice() {
		return price;
	}

	@Override
	public String getAuthor() {
		return author;
	}

}
